Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
light-zero-copy
WrappedMutPointer
,WrappedPointer
zerocopy
crateZeroCopyTraits
const PAD: bool
inZeroCopyVec
,ZeroCopyMutSlice
andZeroCopyCyclicVec
zerocopy::Unaligned
forL
&T
batched-merkle-tree
ZeroCopyVecUsize
withZeroCopyVecU64
(usize is no longer supported)BatchMetadata
inMerkleTreeAccount
&QueueAccount
refactorWrappedMutPointer
->zerocopy::Ref<&mut [u8], T>
From<u64>
forBatchState
zerocopy
traits forBatch
(KnownLayout, Immutable, IntoBytes, FromBytes
)Batch
replacedBatchState
withu64
(to satisfy zerocopy traits)Batch
replacedbloom_filter_is_wiped
bool
withu8
and added getters and setters which returnbool
(zerocopy traits don't supportbool
)merkle-tree-metadata
light_utils::pubkey::Pubkey
instead ofsolana_program::pubkey:.Pubkey
for zero copy compatibilitylight_utils
Pubkey
with derived zerocopy traits,solana_program::pubkey::Pubkey
andanchor_lang::prelude::Pubkey
conversionsaccount-compression
programGroupAccess
returnPubkey
instead of&Pubkey
necessary so that we can convertlight_utils::pubkey::Pubkey
toanchor::prelude::Pubkey
(conversion is necessary because we need to derive zerocopy traits)light-batched-merkle-trees
forbatch_append
,insert-into-queues
,light-system-program
check_program_owner_state_merkle_tree
added generic condition to distinguish between append and nullify as an additional safeguard in case that invalid accounts are passedinvoke/processor.rs
(prior reading an account that is modified in the same tx would fail, same for reading an address which is created in the same tx)
check_vec_capacity
to check vector capacity (it's basically free in terms of CU)